package com.example.util;

public enum  Payment {
    Alipay(true,"支付宝支付"),
    WEPAY(false,"微信支付");
    /*
    支付方式的枚举
     */
    private boolean enable;
    private String name;
    private Payment(boolean enable,String name){
        this.enable=enable;
        this.name=name;
    }

    public boolean isEnable() {
        return enable;
    }

    public String getName() {
        return name;
    }
}
